package cn.com.sinosoft.money.controller;

import cn.com.sinosoft.money.service.LoginService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import javax.annotation.Resource;

/**
 * @author wangyupeng
 * @despriction:
 * @ate:Created in 12:46 2019/3/21
 * @modify By:
 */
@Controller
@RequestMapping(value = "/login")
@Slf4j
@Api(tags = "登陆管理")
public class LoginController {

    @Resource
    private LoginService loginService;

    @RequestMapping(value = "/",method = RequestMethod.GET)
    public String toLogin(){
        return "money/login";
    }

    @ApiOperation("登陆接口-王玉鹏")
    @RequestMapping(value = "/tologin",method = RequestMethod.POST)
    public String login(){
        return "money/index";
    }
}
